// 引入封装好的axios
import axios from '../axios'

// 抛出
export default {
    // 新增
    addClaims(data) {
        return axios({
            url: '/claims/addClaims',
            method: 'post',
            data
        })
    },
    //获取
    getClaims(params) {
        return axios({
            url: './claims/getClaims',
            method: 'get',
            params
        })
    },
    //删除
    deleteClaims(data) {
        return axios({
            url: './claims/deleteClaimsById',
            method: 'post',
            data
        })
    },
    //通过id获取某个数据
    getClaimsById(data) {
        return axios({
            url: './claims/getClaimsById',
            method: 'post',
            data
        })
    },
    //修改数据
    updateClaims(data) {
        return axios({
            url: './claims/updateClaims',
            method: 'post',
            data
        })
    },
    //更改理赔订单状态
    againReapply(data){
        return axios({
            url: './claims/againReapply',
            method: 'post',
            data
        })
    },
    //同意理赔订单状态
    agreeReapply(data){
        return axios({
            url: './claims/agreeReapply',
            method: 'post',
            data
        })
    },
    //拒绝理赔订单状态
    disagreeReapply(data){
        return axios({
            url: './claims/disagreeReapply',
            method: 'post',
            data
        })
    }
}